Add warning about anthropic api key usage#125
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
docs/providers/claude-code.md
Outdated
| * `claude-sonnet-4` (Recommended) | ||
| * `claude-4-opus` | ||
| - `claude-sonnet-4` (Recommended) | ||
| - `claude-4-opus` |
There was a problem hiding this comment.
Pull Request Overview
This PR adds documentation to clarify how Claude Code handles authentication when the ANTHROPIC_API_KEY environment variable is present. The change includes a warning section explaining that the CLI tool may use this environment variable for authentication instead of interactive login methods.
Key changes:
- Added a warning callout about
ANTHROPIC_API_KEYenvironment variable usage - Updated the supported models list with more detailed formatting and newer model versions
- Reformatted bullet points from asterisk to dash syntax for consistency
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| * **Custom Paths:** If you installed Claude Code in a non-standard location, you can specify the full path in the settings. Examples: | ||
| * Windows: `C:\tools\claude\claude.exe` | ||
| * macOS/Linux: `/usr/local/bin/claude` or `~/bin/claude` | ||
| - **No API Keys Required:** Claude Code uses your existing CLI authentication, so you don't need to manage separate API keys. |
There was a problem hiding this comment.
This statement contradicts the warning added above about ANTHROPIC_API_KEY usage. The documentation should be updated to acknowledge that API keys may be used when the environment variable is set.
| - **No API Keys Required:** Claude Code uses your existing CLI authentication, so you don't need to manage separate API keys. | |
| - **API Key Usage:** Claude Code primarily uses your existing CLI authentication, but if the `ANTHROPIC_API_KEY` environment variable is set, it will use that API key for authentication. You do not need to manually manage API keys unless you are using non-interactive environments or have set this variable. |
No description provided.